home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH3 / 3-4-7.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-09-17  |  1.6 KB  |  55 lines

  1. VERSION 5.00
  2. Begin VB.Form frm3_4_7 
  3.    Caption         =   "ANSI Values"
  4.    ClientHeight    =   1245
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   2280
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   1245
  20.    ScaleWidth      =   2280
  21.    Begin VB.PictureBox picOutput 
  22.       Height          =   495
  23.       Left            =   120
  24.       ScaleHeight     =   435
  25.       ScaleWidth      =   1995
  26.       TabIndex        =   2
  27.       Top             =   600
  28.       Width           =   2055
  29.    End
  30.    Begin VB.TextBox txtCharacter 
  31.       Height          =   285
  32.       Left            =   1680
  33.       TabIndex        =   1
  34.       Top             =   120
  35.       Width           =   255
  36.    End
  37.    Begin VB.Label lblPress 
  38.       Caption         =   "Press any key"
  39.       Height          =   255
  40.       Left            =   360
  41.       TabIndex        =   0
  42.       Top             =   120
  43.       Width           =   1215
  44.    End
  45. Attribute VB_Name = "frm3_4_7"
  46. Attribute VB_GlobalNameSpace = False
  47. Attribute VB_Creatable = False
  48. Attribute VB_PredeclaredId = True
  49. Attribute VB_Exposed = False
  50. Private Sub txtCharacter_KeyPress(KeyAscii As Integer)
  51.   txtCharacter.Text = ""
  52.   picOutput.Cls
  53.   picOutput.Print Chr(KeyAscii); " has ANSI value"; KeyAscii
  54. End Sub
  55.